package com.kanq.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kanq.pojo.entity.KanqAiFile;
import com.kanq.pojo.entity.KanqAiFileChunk;
import com.kanq.pojo.response.FileList;
import com.kanq.pojo.response.UploadFileByTypeResponse;

import java.util.List;

public interface KanqAiFileService extends IService<KanqAiFile> {
    KanqAiFile getFileWithKeywordsById(Long fileId);

    FileList getFileWithKeywordsByType(Long type, int pageId, int pageSize);

    void uploadByType(UploadFileByTypeResponse request);

    List<KanqAiFile> getFileWithChunksV2(List<Long> chunkIds2);

    List<KanqAiFileChunk> getFileWithChunksByType(Long typeId);

    long newFile(String originalFilename, long typeId);

    IPage<KanqAiFile> selectAllPage(Page<KanqAiFile> objectPage);
}
